package com.zxy.paycenter.common.constants;

import org.springframework.util.ClassUtils;

import java.util.Objects;

/**
 * @author zxy
 */
public class Constant {
    /**
     * 文件分隔符
     */
    public static final String SF_FILE_SEPARATOR = System.getProperty("file.separator");
    /**
     * 行分隔符
     */
    public static final String SF_LINE_SEPARATOR = System.getProperty("line.separator");
    /**
     * 路径分隔符
     */
    public static final String SF_PATH_SEPARATOR = System.getProperty("path.separator");
    /**
     * 支付宝支付二维码存放地址
     */
    public static final String QRCODE_PATH = Objects.requireNonNull(Objects.requireNonNull(ClassUtils.getDefaultClassLoader()).getResource("static")).getPath()+SF_FILE_SEPARATOR+"qrcode";
    /**
     * 接口时间戳最大支持时间(秒)
     */
    public static long TIMESTAMP_MAX_SECOND_TIME = 180;
    /**
     * 成功
     */
    public static final String SUCCESS = "success";
    /**
     * 失败
     */
    public static final String FAIL = "fail";
}
